<?php
declare (strict_types=1);

namespace app\common\enum;

/**
 * 系统设置枚举类
 * Class Setting
 * @package app\common\enum
 */
class Setting
{
    // 上传设置
    const STORAGE = 'storage';

    // 账户注册设置
    const REGISTER = 'register';

    // 充值设置
    const RECHARGE = 'recharge';

    // 积分设置
    const POINTS = 'points';

    // 页面风格设置
    const APP_THEME = 'app_theme';

    // 客服设置
    const CUSTOMER = 'customer';

    // 短信设置
    const SMS = 'sms';

    // 微信小程序设置
    const WXAPP = 'wxapp';
    
    // 支付设置
    const PAY = 'pay';

    /**
     * 获取类型值
     * @return array
     */
    public static function data(): array
    {
        return [
            self::STORAGE => [
                'value' => self::STORAGE,
                'describe' => '上传设置',
            ],
            self::REGISTER => [
                'value' => self::REGISTER,
                'describe' => '账户注册设置',
            ],
            self::RECHARGE => [
                'value' => self::RECHARGE,
                'describe' => '充值设置',
            ],
            self::POINTS => [
                'value' => self::POINTS,
                'describe' => '积分设置',
            ],
            self::APP_THEME => [
                'value' => self::APP_THEME,
                'describe' => 'APP/小程序主题设置',
            ],
            self::CUSTOMER => [
                'value' => self::CUSTOMER,
                'describe' => '客服设置',
            ],
            self::SMS => [
                'value' => self::SMS,
                'describe' => '短信设置',
            ],
            self::WXAPP => [
                'value' => self::WXAPP,
                'describe' => '微信小程序设置',
            ],
            self::PAY => [
                'value' => self::PAY,
                'describe' => '支付设置',
            ]
        ];
    }
}
